home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1996 June / MACPOWER-1996-06.ISO.7z / MACPOWER-1996-06.ISO / AMUG / UTILITY_40 / MacShell 0.54b / MacShell.0.54b / bin / cut / cut.rsrc / help_24057_cut
Text File  |  1995-01-03  |  1KB  |  45 lines

  1. SYNTAX
  2.  cut -clist [filename ...]
  3.  cut -flist [-dc] [filename ...]
  4.  
  5. DESCRIPTION
  6.   Use cut to cut out columns from a table or fields from  each
  7.   line  of  a  file;  in data base parlance, it implements the
  8.   projection of a relation.  The fields as specified  by  list
  9.   can  be  of fixed length, (such as on a punched card), or of
  10.   variable length between lines.  They can be  marked  with  a
  11.   field  delimiter  character,  such as TAB (as specified with
  12.   the -d option).  cut can be used as a filter;  if  no  files
  13.   are  given, the standard input is used.  In addition, a file
  14.   name of `-' explicitly refers to the standard input.
  15.  
  16. OPTIONS
  17.   -clist
  18.        By character position.  list is a comma-separated  list
  19.        of integer field numbers (in increasing order), with an
  20.        optional `-' to indicate ranges:
  21.  
  22.        1,4,7
  23.             characters 1, 4 and 7
  24.        1-3,8
  25.             characters 1 through 3, and 8
  26.  
  27.   -flist
  28.        By field position.   Instead  of  character  positions,
  29.        list  specifies  fields  that are separated a delimiter
  30.        (normally a TAB):
  31.  
  32.        1,4,7
  33.             fields 1, 4 and 7
  34.  
  35.        Lines with no  field  delimiters  are  normally  passed
  36.        through intact (to allow for subheadings).
  37.  
  38.   -dc  Set the field delimiter to c.  The default  is  a  TAB.
  39.        Characters  with special meaning to the shell such as a
  40.        TAB or SPACE characters, must be quoted.
  41.  
  42. AUTHOR
  43.        Adolfo Villafiorita (adolfo@frege.mrg.dist.unige.it)
  44.